About
=======

This repository includes data and scripts to reproduce: Terman, Rochelle and Joshua Byun. Forthcoming. “Punishment and Politicization in the International Human Rights Regime.” With Joshua Byun. *American Political Science Review*.

Date: September 8, 2021

Contact: Rochelle Terman (rterman@uchicago.edu)


Instructions
=============

1. Download all files from the dataverse in archive format (`.zip` file). This creates the required folder structure.

2. Open `Replication.Rproj`. This will automatically set the working directory.

3. Run `Replication.Rmd`. You must run each chunk **in order** for the code to work.


Data
=========

Data files
-----------

`replication_data.RData` contains four data frames:

- `dyad_level`: directed-dyad-level UPR data. Includes all dyads between a state under review and a potential reviewer (i.e., all UN member states), totaling 74,112 observations.
	
- `dyad_level_S1`: same as `dyad_level`, limited to recommendations with severity level 1.
	
- `dyad_level_S3`: same as `dyad_level`, limited to recommendations with severity level 3.
	
- `rec_level`: recommendation-level UPR data. Contains all recommendations from the first two cycles of the UPR.

Data Sources
-------------

1. UPR: All UPR data were collected from UPR Info (https://upr-info-database.uwazi.io/).
2. Geopolitical Affinity: From Bailey, Michael, Anton Strezhnev, and Erik Voeten. 2017. "Estimating Dynamic State Preferences from United Nations Voting Data." Journal of Conflict Resolution 61 (2): 430–56.	
3. Physical Integrity Rights Protections: From Fariss, Christopher J. 2014. “Respect for Human Rights Has Improved Over Time: Modeling the Changing Standard of Accountability.” American Political Science Review 108 (02): 297–318.
4. Alliance: From Correlates of War Formal Alliance (version 4.1), Douglas M. Gibler, “The Costs of Reneging: Reputation and Alliance Formation,” Journal of Conflict Resolution 52, no. 3 (2008): 426–54.
5. Region: From Correlates of War Formal Alliance (version 4.1), Douglas M. Gibler, “The Costs of Reneging: Reputation and Alliance Formation,” Journal of Conflict Resolution 52, no. 3 (2008): 426–54.

Results
============


Manuscript:
----------

- Figure 2: `Results/Figure_2/F2_plot.pdf`
- Figure 3: `Results/Figure_3/F3_plot.pdf`
- Figure 4: `Results/Figure_4/F4_plot.pdf`
- Figure 5: `Results/Figure_5/F5_plot.pdf`
- Figure 6: `Results/Figure_6/F6_plot.pdf`

Appendix:
----------

- Figure A1: `Results/Figure_A1/FA1_plot.pdf`
- Figure A2: `Results/Figure_A2/FA2_plot.pdf`
- Figure A3: `Results/Figure_A3/FA3_plot.pdf`
- Figure A4: `Results/Figure_A4/FA4_plot.pdf`
- Figure A5.1: `Results/Figure_A5/FA5-1_plot.pdf`
- Figure A5.2: `Results/Figure_A5/FA5-2_plot.pdf`
- Table A1: `Results/Table_A1.csv`
- Table A2: `Results/Table_A2.csv`
- Table A3: `Results/Table_A3.csv`
- Table A5: `Results/Table_A5.csv`
- Table A6: `Results/Table_A6`
- Table A7: `Results/Table_A7.csv`
- Table A8: `Results/Table_A8.html`
- Table A9: `Results/Table_A9.csv`

Software 
=========

All analysis was performed in `R` version 4.1.0 (2021-05-18), running under  macOS Catalina 10.15.7


**Required Packages:**

  - `tidyverse`: 1.3.1
  - `stargazer`: 5.2.2
  - `ggrepel`: 0.9.1 
  - `pscl`: 1.5.5 
  - `dendextend`: 1.14.0 